package com.scs.application.modules.print.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.scs.application.modules.print.entity.Field;
import com.scs.application.modules.print.mapper.FieldMapper;
import com.scs.application.modules.print.service.FieldService;
import com.scs.application.core.service.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 打印数据列
 */
@Service
public class FieldServiceImpl extends BaseServiceImpl<FieldMapper, Field> implements FieldService {

    @Override
    public List<Field> getByTemplateId(String templateId) {
       return this.list(Wrappers.<Field>query().eq("template_id", templateId));
    }

    public Boolean isSupport(Boolean flagProject) {
        return flagProject;
    }
}
